package com.dd.ljzapplication.activity;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.ThemedSpinnerAdapter;

import com.bumptech.glide.Glide;
import com.dd.ljzapplication.R;
import com.dd.ljzapplication.adapter.TestNewAdapter;
import com.dd.ljzapplication.view.CustomRecyclerView;

import java.util.ArrayList;

import base.BaseUtilActivity;

/**
 * Created by LiJZ on 2017/1/13.
 */

public class RefreshActivity extends BaseUtilActivity {

	private CustomRecyclerView mRecyclerView;

	@Override
	protected int setLayoutID() {
		return R.layout.activity_refresh;
	}

	@Override
	protected void init() {

	}

	@Override
	protected void initActionBar() {

	}

	@Override
	protected void initView() {
		mRecyclerView = (CustomRecyclerView) findViewById(R.id.rv);
		ArrayList<String> mListData = new ArrayList<>();
		for (int i = 0; i < 50; i++) {
			mListData.add("data" + (i + 1));
		}
		Glide.with(this).load("").into(40,40);
		LinearLayoutManager layoutManager = new LinearLayoutManager(this);
		mRecyclerView.setLayoutManager(layoutManager);
		TestNewAdapter adapter = new TestNewAdapter(this);
		adapter.setListData(mListData);
		mRecyclerView.setAdapter(adapter);
	}

	@Override
	protected void initEvent() {

	}


}
